PAL2RGB

Section: User Commands (1)
Updated: May 18, 1991
Index Return to Main Contents
 

NAME

pal2rgb - convert a palette color TIFF image to a full color image  

SYNOPSIS

pal2rgb [ -none ] [ -packbits ] [ -lzw ] [ -contig ] [ -separate ] [ -8bit ] [ -16bit ] [ -rowsperstrip n ] from-file to-file  

DESCRIPTION

Pal2rgb converts a palette color TIFF image to a full color image by applying the colormap of the palette image to each sample to generate a full color RGB image. By default, pal2rgb inspects the colormap values and assumes either 16-bit or 8-bit values according to the maximum value. That is, if no colormap entry greater than 255 is found, pal2rgb assumes the colormap has only 8-bit values; otherwise it assumes 16-bit values (as required by the TIFF specification). To force the colormap to be treated as having 8-bit or 16-bit values, the -8bit or -16bit flag may be specified, respectively.

The output image can be compressed with one of the compression algorithms supported by libtiff: -packbits for Macintosh Packbits, -lzw for Lempel-Ziv & Welch, -none for no compression. If no compression-related option is specified, the input file's compression algorithm is used.

As for tiffcp(1), the TIFF directory information of the input image is copied through to the output image. The -contig, -separate, and -rowsperstrip options may be used to control the data organization of the output image.  

BUGS

Only 8-bit images are handled.  

SEE ALSO

tiffinfo(1), tiffcp(1), tiffmedian(1), libtiff(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
BUGS
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 01:45:57 GMT, February 01, 2023